import request from "@/utils/request";

export function getData() {
  return request({
    url: "/mall/product-cate/all",
    method: "get"
  });
}

export function getTransformersData() {
  return request({
    url: "/mall/index-product-cate/list",
    method: "get"
  });
}

export function postData(data) {
  return request({
    url: "/mall/product-cate/add",
    method: "post",
    data
  });
}

export function putData(data) {
  return request({
    url: "/mall/product-cate/edit",
    method: "put",
    data
  });
}

export function deleteData(ids) {
  return request({
    url: "/mall/product-cate/del",
    method: "delete",
    data: { ids }
  });
}
